package edu.ncst.baseweb.dao;

import edu.ncst.baseweb.common.RequestPage;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.math.BigInteger;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User extends RequestPage {

    @TableId
    private Integer id;

    @TableField(value = "USER_ACCOUNT")
    private String userAccount;
    @TableField(value = "USER_NAME")
    private String userName;
    @TableField(value = "PASSWORD")
    private String password;
    @TableField(value = "number")
    private BigInteger number;
    @TableField(value = "phone")
    private BigInteger phone;

    private transient  String token;

    private transient List<Modules> modules;

    private transient List<Roles> roles;

    private transient List<String> roleNames;

    private transient Integer[] roleIds;

    public static final String COL_NUMBER = "number";

    public static final String COL_ACCOUNT = "USER_ACCOUNT";

}
